<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddPlanRemindToGoodCart extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('good_carts', function (Blueprint $table) {
            $table->integer('plan_remind')->default(0)->comment('待加入购物车0待加入，1已加入');
            $table->string('title');
            $table->integer('is_test_add')->default(0);
            $table->string('image');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('good_carts', function (Blueprint $table) {
            $table->dropColumn('plan_remind');
        });
    }
}
